
#include <cassert>
#include <iostream>
#include <sstream>
using namespace std;

#ifdef NDEBUG
/*
 * No assertion checking
 */
#define PRINT(EXP)

#else

#define PRINT(EXP)                                                             \
  
#endif

int main() {
  ostringstream os;
  // ostringstream os(std::ios_base::ate);

  for (int i = 0; i < 2; ++i) {
    os << "hello " << 879 << " addd\n" << endl;
    cout << "nmmmm" << endl;
  }
  os = ostringstream();
  cout << os.str() << endl;
  cout << os.str().size() << endl;
  // os = ostringstream(ios_base::ate);
  cout << "\n\n\n" << endl;

  os << "dingxuejun\n";
  cout << os.str() << endl;
  cout << os.str().size() << endl;

  return 0;
}